Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document use of ANY in test assertions #94060

Merged
merged 6 commits into from
Feb 17, 2024
Merged

Conversation

graingert
Copy link
Contributor

See https://twitter.com/mfoord/status/1539237669829484556

here's an example of that use case in the stdlib tests:

self.assertEqual(
[
b"HTTP/1.0 200 OK",
mock.ANY,
b"Content-Type: text/plain",
b"Date: Wed, 24 Dec 2008 13:29:32 GMT",
b"",
b"/\x80\x80",
],
out.splitlines())

@bedevere-bot bedevere-bot added awaiting review docs Documentation in the Doc dir labels Jun 21, 2022
@graingert
Copy link
Contributor Author

@mfoord

@graingert graingert changed the title document use of ANY in test assertions gh-94060: document use of ANY in test assertions Jun 21, 2022
@serhiy-storchaka
Copy link
Member

LGTM. But a NEWS entry is not required for this.

@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) February 17, 2024 11:58
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) February 17, 2024 13:09
@serhiy-storchaka serhiy-storchaka changed the title gh-94060: document use of ANY in test assertions Document use of ANY in test assertions Feb 17, 2024
@serhiy-storchaka serhiy-storchaka merged commit 04005f5 into python:main Feb 17, 2024
24 checks passed
@miss-islington-app
Copy link

Thanks @graingert for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 17, 2024
(cherry picked from commit 04005f5)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented Feb 17, 2024

GH-115607 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 bug and security fixes label Feb 17, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 17, 2024
(cherry picked from commit 04005f5)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented Feb 17, 2024

GH-115608 is a backport of this pull request to the 3.11 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.11 only security fixes label Feb 17, 2024
serhiy-storchaka pushed a commit that referenced this pull request Feb 17, 2024
(cherry picked from commit 04005f5)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
serhiy-storchaka pushed a commit that referenced this pull request Feb 17, 2024
(cherry picked from commit 04005f5)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
woodruffw pushed a commit to woodruffw-forks/cpython that referenced this pull request Mar 4, 2024
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip issue skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants